package net.shopxx.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

/**
 * 实体类 - 颜色
 */


@Entity
@Table(name = "size")
public class Size extends BaseEntity {

	private static final long serialVersionUID = -6109590619136943215L;


	private String group;//组名称
	private String name;// 名称
	private List<Product> productList;
	

	@Column(nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

    @ManyToMany(fetch = FetchType.LAZY)
    public List<Product> getProductList() {
        return productList;
    }
    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }
	
	

}